<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

	<!-- 头部内容 -->
	<div id="head">
		<div class="headtitle">
			<h1 class="headtitle"><a href="/">GAE应用</a></h1>
		</div>
		
		<div id="login">
			<%
			    UserService userService = UserServiceFactory.getUserService();
			    User user = userService.getCurrentUser();
			    if (user != null) {
			%>
				你好,<%= user.getNickname() %> <a 
					href="<%= userService.createLogoutURL(request.getRequestURI()) %>">注销</a>
				<%
			    } else {
			%>
				<a href="<%= userService.createLoginURL(request.getRequestURI()) %>">登陆</a>
				<%
			    }
			%>
		</div>
		

	</div>
	
	
	<div id="nav">
		<div class="navitem"><a href="/">首页</a></div>
		<div class="navitem"><a href="/Realsatan174_gae_gwt_test.html">GWT演示</a></div>
		<div class="navitem"><a href="/wtm/">WTM</a></div>
		<div class="navitem"><a href="/about.jsp">关于</a></div>
	</div>

	<div class="clear"></div>
	
	<!-- 左部栏 -->
	<div id="left">
	
		<!-- 站外链接 -->
		<div class="block">
			<div class="title">链接:</div>
			<div class="entry"><a href="https://appengine.google.com/">GAE后台管理</a></div>
			<div class="entry"><a href="http://code.google.com/intl/zh-CN/appengine/docs/">GAE文档</a></div>
			<div class="entry"><a href="https://dns.godaddy.com/">Godaddy管理</a></div>
			<div class="entry"><a href="http://www.w3school.com.cn/">w3school</a></div>
		</div>
	
		<!-- 站外链接 -->
		<div class="block">
			<div class="title">链接:</div>
			<div class="entry"><a href="https://appengine.google.com/">GAE后台管理</a></div>
			<div class="entry"><a href="http://code.google.com/intl/zh-CN/appengine/docs/">GAE文档</a></div>
			<div class="entry"><a href="https://dns.godaddy.com/">Godaddy管理</a></div>
			<div class="entry"><a href="http://www.w3school.com.cn/">w3school</a></div>
		</div>
	</div>